<?php if(!empty($data)): ?>
        <?php $cate = $this->config->item('categories'); ?>
        <?php $permalink = '';$arrUri = array(); ?>
        <?php foreach($data as $post): ?>
        <?php $permalink = permalink(array('text' => $post->post_title, 'id' => $post->id)); ?>
        <?php
        $arrUri[] = $permalink;
        ?>
        <ul class="lp_lists" id="list_items">
        <li class="lp_container">
            <div class="lp_left">
                <div class="lp_desc">
                 <a href="<?php echo $permalink; ?>">
                    <img src="<?php echo FARM_URL.'460x460/'.$post->post_image ?>" width="460" />
                    <?php if($post->item_type == 'video'): ?>
                    <div class="video-indicator"></div>
                    <?php endif; ?>
                    <?php if($post->item_type == 'gif'): ?>
                    <div class="gif-indicator"></div>
                    <?php endif; ?>
                 </a>
                </div>
            </div><!--lp left ends-->
            <div class="lp_right">
                <div class="lp_title">
                   <a href="<?php echo $permalink; ?>"><?php echo $post->post_title ?></a>
                </div>
                <div class="lp_category">
                    <a href="<?php echo BASE_URL.'/'.$cate[$post->category_id][0]; ?>" title="<?php echo $cate[$post->category_id][1]; ?>" rel="category tag" class="cate_tag"><?php echo $cate[$post->category_id][1]; ?></a>                    </div>
                <div class="lp_dates">Gửi <?php echo facebookTime($post->crawl_date) ?></div>
                <div class="lp_comments">
                    <div class="lpc_butt">
                        <div class="view_icon"><?php echo number_format($post->view) ?></div>
                    </div>
                    <div class="lpc_butt" style="border:none !important;">
                       <div class="comment_icon" id="cmt-<?php echo $post->id ?>">
                        <?php
                        //$fb = getFacebookCount($permalink);
                        //echo number_format((int)$fb->comment_count);
                       ?></div>
                    </div>
                </div>
                <div class="lpc_sharing">
                    <div class="lpcs_top">
                    </div>
                    <div class="lpcs_bottom">

                            <div class="lpcs_sbutt">
                                <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo $permalink ?>" data-text="<?php echo $post->post_title ?>" data-count="horizontal"></a>
                            </div>
                            <div class="lpcs_sbutt" id="lpcs_fbutt" >
                                <div class="fb-like" data-href="<?php echo $permalink ?>" data-send="false" data-layout="button_count" data-width="200" data-show-faces="true"></div>
                            </div>

                    </div>
                </div>
            </div><!--lp right ends-->
            <div style="clear: both;"></div>
        </li><!--lp container ends-->
        </ul>
        <div style="clear: both;"></div>
        <?php endforeach; ?>
        <?php
        $strUri = base64_encode(implode(',', $arrUri));
        ?>
    <?php endif; ?>